package com.erp.erp_mask.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.Data;

import java.time.LocalDate;

/**
 * @BelongsProject: erp
 * @BelongsPackage: com.erp.erp_mask.vo
 * @Author: wang
 * @CreateTime: 2024-05-28  17:11
 * @Description: TODO
 * @Version: 1.0
 * @effect:
 */
@Data
public class OrderData {
    private Integer orderId;
    private Integer ordcomId;
    private String orderNumber;
    private String plannumber;
    private Integer commId;
    private String productName;
    private String proUnits;
    private String catName;
    private Integer orderNum;
    private Integer orderPrice;
    private Integer orderCount;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate orderDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate deliveryDate;
}
